package cn.dkk.behavior_design.visitor.assignment;

/**
 * @author dkk
 * @date 2022/7/31
 * @desc
 */
public class StaticAssignment {

    public static void main(String[] args) {
        Pet dog = new Dog();
        Pet cat = new Cat();
        Pet pet = new Pet();
        Executor executor = new Executor();
        executor.howl(dog);
        executor.howl(cat);
        executor.howl(pet);
    }

}
